/**
 * @Author: An Bui
 * @Email: btan@tma.com.vn - anbuithien@gmail.com
 * @Date: Oct-31-2012 
 */

dojo.provide("webapp.iclifesize.controlBase");
dojo.declare("webapp.iclifesize.controlBase",[ICTouchAPI.webApplication],{

	fullControlApp : null,				// FullControl Application Mode
	containerApp : null,				// Container of Application
	
	/**
	 * Constructor 
	 */
	constructor : function(){
		ICTouchAPI.tools.registerHomepageButton([
			"webapp.iclifesize.getIclifesize",
			"ICLIFESIZE_BTN",
			"iclifesize-application",
			"iclifesize"
		]);
		
		ICTouchAPI.tools.registerHomepageKey([
			"webapp.iclifesize.getIclifesize",
			"ICLIFESIZE_BTN",
			"iclifesize-application",
			"iclifesize"
		]);
		
		alert("ControlBase called");
	},

	/**
	 * Button pressed 
	 */
	onButtonPress : function(buttonId) {
		var that = this;
		var data = that.data;
		
		switch(buttonId){
			case data.BACK:
				dojo.publish("OpenHomepage");
				break;
		}
	},
});
